<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

<!-- 	<p class="note">Fields with <span class="required">*</span> are required.</p> -->


		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>

		<hr class="clearfix" />

		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
		<hr class="clearfix" />
<!-- 		<p class="hint">
			Hint: You may login with <tt>demo/demo</tt> or <tt>admin/admin</tt>.
		</p>
 -->

	<div class="clearfix">
		<ul>
			<li  style="display:inline-block;"><?php echo $form->checkBox($model,'rememberMe'); ?></li>
			<li  style="display:inline-block;"><?php echo $form->label($model,'rememberMe'); ?></li>
			<li><?php echo $form->error($model,'rememberMe'); ?></li>
		</ul>
	</div>
	<hr class="clearfix" />
		
	<button class="thoughtbot"  type="submit">登录</button>
	
	<hr class="clearfix" />
	现在还没有帐号？马上<?php echo CHtml::link('申请', array('/site/register'));?>一个吧！
	
	<hr />
	<?php $this->widget('ext.oauthLogin.OauthLogin',array(
           'itemView'=>'medium_login', //效果样式
           'back_url'=>Yii::app()->homeUrl,//login成功后返回的页面
 )); ?>


<?php $this->endWidget(); ?>